package cn.iocoder.yudao.module.erp.controller.admin.contractpaymentplan.vo;

import cn.iocoder.yudao.module.erp.controller.admin.contractpaymentplan.vo.contractpaymentplandetail.ContractPaymentPlanDetailSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 合同付款计划新增/修改 Request VO")
@Data
public class ContractPaymentPlanSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2313")
    private Long id;

    @Schema(description = "付款计划编号")
    private String planNo;

    @Schema(description = "合同id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "合同id")
    private Long contractId;

    @Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "合同编号不能为空")
    private String contractNo;

    @Schema(description = "合同名称", example = "赵六")
    private String contractName;

    @Schema(description = "合同乙方名称", example = "赵六")
    private String supplierName;

    @Schema(description = "付款备注", example = "随便")
    private String paymentRemark;

    @Schema(description = "计划内容")
    private List<ContractPaymentPlanDetailSaveReqVO> detailSaveReqVOS;

}